]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
message-tray: allocate the entire size to the icon
authorOwen W. Taylor <otaylor@fishsoup.net>
Sat, 19 Mar 2011 17:51:34 +0000 (13:51 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Mon, 21 Mar 2011 15:17:29 +0000 (11:17 -0400)
Specify x-fill and y-fill true for the bin that contains the status
icon so the status icon will always be sized to our specified icon
size (24x24). This prevents pathological behavior for legacy status
icons embedded in the tray where an initial allocation at 1x1 before
they had content would "stick", and the icon would permanently
end up 1x1.

https://bugzilla.gnome.org/show_bug.cgi?id=634820

js/ui/messageTray.js

index d2c09f499343af2294fdf62598b101251e2daed3..ae1060aa614d49227e96c1434b1fe625c86fb759 100644 (file)
@@ -820,7 +820,9 @@ Source.prototype = {
     _init: function(title) {
         this.title = title;
         this._iconBin = new St.Bin({ width: this.ICON_SIZE,
-                                     height: this.ICON_SIZE });
+                                     height: this.ICON_SIZE,
+                                     x_fill: true,
+                                     y_fill: true });
         this.isTransient = false;
         this.isChat = false;
     },